﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SMS.Entities.BaseClasses;
using SMS.Common.Silverlight;

namespace SMS.ViewModel.Admin
{
    public class ViewModel_AdminMDI:BaseNotify
    {
        //Views.NewUserChildWindow ObjChildWindow;
        public ViewModel_AdminMDI()
        {
            InitializeCommponent();
        }

        private void InitializeCommponent()
        {
            NewUserCommand = new DelegateCommand(NewUserCommand_Click, null);
            UpdateUserCommand = new DelegateCommand(UpdateUserCommand_Click, null);
            ResetPassword = new DelegateCommand(ResetPassword_Click, null);
            
        }

        public void NewUserCommand_Click(object param)
        {
            //ObjChildWindow = new Views.NewUserChildWindow("Add", null);
            //ObjChildWindow.Closed += (s, e) =>
            //{
            //    if ((bool)ObjChildWindow.DialogResult==true)
            //    {
                    
            //    }
            //    else if ((bool)ObjChildWindow.DialogResult == false)
            //    {
                     
            //    }
                
            //};
            //ObjChildWindow.Show();
        }

        public void UpdateUserCommand_Click(object param)
        {
            //var updateUserObject = new Views.Admin.UpdateUserChildWindow();
            //updateUserObject.Show();
        }

        public void ResetPassword_Click(object param)
        {
            //var resetPassword = new Views.Admin.ResetPasswordChildWindow();
            //resetPassword.Closed += (s, e) =>
            //{

            //};
            //resetPassword.Show();
        }

        #region Property..

        #endregion

        #region Delegate Property
        public ICommand NewUserCommand { get; private set; }
        public ICommand UpdateUserCommand { get; private set; }
        #endregion

        public DelegateCommand ResetPassword { get; set; }
    }
}
